package com.group.Service.Impl;

import com.group.DAO.CarChargeDAO;
import com.group.Enity.CarCharge;
import com.group.Enity.Parking;
import com.group.Service.CarChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarChargeServiceImpl implements CarChargeService {

    @Autowired
    private CarChargeDAO carChargeDAO;

    @Override
    public List<Parking> getParkings() {
        return carChargeDAO.getParkings();
    }

    @Override
    public List<CarCharge> getCarCharges(String numbers,Integer status) {
        return carChargeDAO.getCarCharges(numbers,status);
    }

    @Override
    public void delCarChargeByID(int id) {
        carChargeDAO.delCarChargeByID(id);
    }

    @Override
    public void updateStatus(int id) {
        carChargeDAO.updateStatus(id);
    }

    @Override
    public void initData(CarCharge carCharge) {
        carChargeDAO.initData(carCharge);
    }
}
